<?php
/**
 * SYNC_CLIENT_INT.php
 *
 * @desc Sync client class interface
 * @author Andrew lee <andrew(at)dianboom(dot)com>
 * @package client_api
 * @since 10:42 2011/07/15
 * @copyright 2010-2011 dianboom corporation. All rights reserved.
 */

defined('SYNC_CLIENT_ROOT') || die('Access denied !');

interface SYNC_CLIENT_INT_COMMON {

    /**
     * @method getCategories
     *
     * @desc get categories
     * @return json
     */
    public function getCategories();

    /**
     * @method getParentCategories
     *
     * @desc get parent categories
     * @param integer $parent_id
     * @return json
     */
    public function getParentCategories($parent_id = 0);

    /**
     * @method getBrandList
     *
     * @desc get brand list
     * @return json
     */
    public function getBrandList();

    /**
     * @method get_categories_by_id
     *
     * @desc get categorie by id
     * @param integer $cat_id default 0
     * @param integer $brand_id
     * @return json
     */
    public function get_categories_by_id($cat_id = 0, $brand_id);

    /**
     * @method get_child_list
     *
     * @desc get child categories
     * @param integer $tree_id default 0
     * @param integer $brand_id
     * @param integer $deep default 0
     * @return json
     */
    public function get_child_list($tree_id = 0, $brand_id, $deep = 0);

    /**
     * @method getProductByCategory
     *
     * @desc get Product By Category And Brand
     * @param integer $cat_id
     * @param integer $brand_id
     * @param integer $start
     * @param integer $limit
     * @return json
     */
    public function getProductByCategory($cat_id, $brand_id, $start = 0, $limit = 0);

    /**
     * @method getProductGalleris
     *
     * @desc get Product Galleris
     * @param integer $product_id
     * @return json
     */
    public function getProductGalleris($product_id);
}
?>
